import React from "react"
import { Pagination } from "antd"
const PaginationD = ({
  total = 0,
  pagination = { pageSize: 10, pageNo: 1 },
  getCurrentPageSize = () => {}
}) => {
  const _handleSizeChange = (page, pageSize) => {
    getCurrentPageSize(page, pageSize)
  }
  return (
    <>
      <Pagination
        onChange={_handleSizeChange}
        total={total}
        showSizeChanger
        showQuickJumper
        pageSize={pagination.pageSize}
        current={pagination.pageNo}
      />
    </>
  )
}

export default PaginationD
